package com.xc.erp.modules.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xc.erp.modules.erp.domain.dto.SupplierNameParam;
import com.xc.erp.modules.erp.domain.dto.SupplierParam;
import com.xc.erp.modules.erp.domain.pojo.JshSupplier;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 用户、供应商、会员
 */
public interface JshSupplierService extends IService<JshSupplier> {


    IPage<JshSupplier> selectSupplierPage(SupplierParam supplierParam, Integer page, Integer limit);

    boolean checkIsNameAndTypeExist(SupplierNameParam supplierNameParam);

    void exportExcel(SupplierParam supplierParam, HttpServletResponse response);

    void importExcel(MultipartFile file);

    void batchSetStatus(boolean status, Long[] ids);

    List<JshSupplier> supplierList(String type);
}
